/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.templates;

/**
 * Class <code>L1Command</code> 数据库模版:GM指令.
 * 
 * @author jrwz
 * @version 2012-6-16上午05:38:04
 * @see com.lineage.server.templates
 * @since JDK1.7
 */
public final class L1Command {

    /** 执行者名称. */
    private final String executorName;
    /** 执行者权限. */
    private final int executorLevel;
    /** 执行者的CLASS名称. */
    private final String executorClassName;

    /**
     * 数据库模版:GM指令.
     * 
     * @param name
     *            执行者名称
     * @param level
     *            执行者权限
     * @param s
     *            执行者的CLASS名称
     */
    public L1Command(final String name, final int level, final String s) {
        this.executorName = name;
        this.executorLevel = level;
        this.executorClassName = s;
    }

    /**
     * 取得执行者的CLASS名称.
     * 
     * @return CLASS名称
     */
    public String getExecutorClassName() {
        return this.executorClassName;
    }

    /**
     * 取得执行者权限.
     * 
     * @return 执行者权限
     */
    public int getLevel() {
        return this.executorLevel;
    }

    /**
     * 取得执行者名称.
     * 
     * @return 执行者名称
     */
    public String getName() {
        return this.executorName;
    }
}
